#ifndef HOMEOWNERMANAGEWIDGET_H
#define HOMEOWNERMANAGEWIDGET_H

#include <QWidget>
#include <QSqlTableModel>

namespace Ui {
class HomeownerManageWidget;
}

class HomeownerManageWidget : public QWidget
{
    Q_OBJECT

public:
    explicit HomeownerManageWidget(QWidget *parent = 0);
    ~HomeownerManageWidget();

private slots:
    void on_btn_addUser_clicked();

    void on_btn_deleteUser_clicked( );

    void on_btn_commit_clicked();

    void on_btn_backout_clicked();

private:
    Ui::HomeownerManageWidget *ui;
    QSqlTableModel *model;
    void initWindow(); //初始化窗体
    void initTable(); //初始化Table
};

#endif // HOMEOWNERMANAGEWIDGET_H
